I have function which calculates what to be displayed for each object in Column 2. I want to call this function in the layout dxl, below is the code to do that but unfortunately it does not work. While excecuting it halts showing error : incorrect arguments for function showObjectHistory() |
Re: How to call function in layout DXL
1. You are reading the Absolute Number incorrectly. To read the Absolute Number you need to explicitly use an assignment.
void dxllayout()
{
string code = "
Buffer getObjectHistory(int objAbsNo)
{
Buffer result = create()
// ... add stuff to buffer, instead creating a string
}
pragma runLim,0
Buffer o = null
int nr = obj.\"Absolute Number\"
o = getObjectHistory(nr)
displayRich (tempStringOf o)
delete o
"
dxl(column traceColNo, code)
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|